#include "Entry.h"
using namespace std;

//@author U095387X
Entry::Entry() {
	_name = "";
	_amount = 0;
	time_t timer;
	time(&timer);
	_timeOfInput = timer;
}

//@author A0088381W
// constructer for Entry
Entry::Entry( string name, double amount) {
	_name = name;
	_amount = amount;
	time_t timer;
	time(&timer);
	_timeOfInput = timer;
}

//@author A0088381W
Entry::Entry( string name, double amount, time_t timeOfInput) {
	_name = name;
	_amount = amount;
	_timeOfInput = timeOfInput;
}

//@author A0088381W
string Entry::getName () {
	return _name;
}

//@author A0088381W
double Entry::getAmount() {
	return _amount;
}

//@author A0088381W
time_t Entry::getTimeOfInput() {
	return _timeOfInput;
}